import homeMutation from '@/store/mutations/homeMutation'

let defaultState = {
    title: '首页',
    home: null
}
  export default (state = defaultState, action) => {
    try {
      return homeMutation[action.type](state,action.data)
    } catch (error) {
      return state
    }
  }